import request from '@/utils/request'


// 分页查询申购列表
export function getdeviceApplyList(params) {
    return request({
        url: `/deviceApply/deviceApplyList`,
        method: 'get',
        params
    })
}

// 查询品牌列表
export function getManufacturer(params) {
    return request({
        url: `/deviceApply/getManufacturer`,
        method: 'get',
        params
    })
}

// 查询部门列表
export function getselectDeptList(params) {
    return request({
        url: `/dept/selectDeptList`,
        method: 'get',
        params
    })
}

// 申购审核
export function getAudit(params) {
    return request({
        url: `/deviceApply/audit`,
        method: 'get',
        params
    })
}

// 提交审核
export function submitPurchase(params) {
    return request({
        url: `/deviceApply/submit`,
        method: 'get',
        params
    })
}

// 分页查询审核列表
export function getAuditList(params) {
    return request({
        url: `/deviceApply/auditList`,
        method: 'get',
        params
    })
}

// 根据id查询申购详情
export function getById(params) {
    return request({
        url: `/deviceApply/getById`,
        method: 'get',
        params
    })
}


// 修改申购仪器
export function updateDeviceApply(data) {
    return request({
        url: `/deviceApply/updateDeviceApply`,
        method: 'post',
        data
    })
}

// 新增申购仪器
export function addDeviceApply(data) {
    return request({
        url: `/deviceApply/addDeviceApply`,
        method: 'post',
        data
    })
}



// 查询安装验收列表
export function getDeviceInstallList(params) {
    return request({
        url: `/deviceInstall/deviceInstallList`,
        method: 'get',
        params
    })
}

// 查询安装验收删除文件
export function deleteFile(params) {
    return request({
        url: `/deviceInstall/deleteFile`,
        method: 'get',
        params
    })
}

// 安装验收文件上传
export function fileUpload(data) {
    return request({
        url: `/deviceInstall/fileUpload`,
        method: 'post',
        data
    })
}

// 安装验收
export function installAcceptance(data) {
    return request({
        url: `/deviceInstall/installAcceptance`,
        method: 'post',
        data
    })
}
// 位置列表
export function roomList(query) {
    return request({
        url: '/room/roomList',
        method: 'get',
        params: query
    })
}